<!DOCTYPE html>
<!--[if lt IE 7]>      <html lang="fr" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html lang="fr"  class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html lang="fr"  class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="fr"  class="no-js"> <!--<![endif]-->
<?php 
global $CFG;
$url_template=$CFG->config['base_url']."template/default/";
?>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><?php echo $title?></title>
        <meta name="robots" content="INDEX, FOLLOW" />
        <meta name="description" content="<?php echo $description?>"/>
        <meta name="keywords" content="<?php echo $keywords?>">
        <meta name="viewport" content="width=device-width"/>
        <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
        <link rel="stylesheet" href="<?php echo $url_template?>css/main.css">

        <!--[if lt IE 9]>
            <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
            <script>window.html5 || document.write('<script src="<?php echo $url_template?>js/vendor/html5shiv.js"><\/script>')</script>
        <![endif]-->
    </head>
    <body>
        <!--[if lt IE 7]>
            <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->

        <!-- This code is taken from http://twitter.github.com/bootstrap/examples/hero.html -->
        
        <div class="navbar navbar-fixed-top">
		  <div class="navbar-inner">
		    <div class="container">
		      <a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		      </a>
		      <a href="<?php echo $CFG->config['base_url']?>annonce/deposer" class="pull-left btn btn-warning btn-deposer"data-toggle="tooltip" data-original-title="Publier une petite annonce gratuite">
	                    Déposez une annonce<br/>  GRATUITEMENT</a>
		      <div class="nav-collapse">
		        <ul class="nav pull-right">
		        
                            <?php echo $menu_category?>
		
		        </ul>
		        
		      </div><!--/.nav-collapse -->
		    </div>
		  </div>
		</div>
        

		

        <div itemscope itemtype="http://schema.org/Article" class="container">
        	<form class="form-horizontal" action="<?php echo $CFG->config['base_url']?>annonce/chercher" method="post" id="form_rechercher">
			<div class="header row">
				<a itemprop="image" class="span3" href="<?php echo $CFG->config['base_url']?>"  alt="logo caverne" > <img src="<?php echo $url_template?>img/logo.png"  alt="logo caverne"   title="logo caverne.fr"/><br/>
                	<span class="slogan">Une idée, une trouvaille !</span>
                </a>
                <div class="span9">
	                <nav class="pull-right">
		                <ul class=" pull-right">
		                    <li class="btn btn-primary btn-small <?php echo $nav_class['offre']?>" ><a href="<?php echo $CFG->config['base_url']?>annonce/offre"><span class="icon-star-empty icon-white"></span> OFFRE</a></li>
		                    <li class="btn btn-primary btn-small <?php echo $nav_class['demande']?>" ><a href="<?php echo $CFG->config['base_url']?>annonce/demande"><span class="icon-eye-open icon-white"></span> DEMANDE</a></li>
		                    
		                    <li class="btn  btn-info btn-small <?php echo $nav_class['boutique']?>" ><a href="<?php echo $CFG->config['base_url']?>boutique"><span class="icon-shopping-cart icon-white"></span> Boutiques</a></li>
		                    <li class="btn  btn-info btn-small <?php echo $nav_class['boutique']?>" ><a href="<?php echo $CFG->config['base_url']?>boutique/creer"><span class="icon-certificate icon-white"></span> Créer ma boutique</a></li>
							<li class="btn btn-warning btn-small <?php echo $nav_class['mes_annonces']?>"><a href="<?php echo $CFG->config['base_url']?>annonce/mes_annonces"><span class="icon-check"></span> Mes annonces</a><span id="nb_annonces"></span></li>
		                    
		                </ul>
	                </nav>
	                <div class="pull-right text-right nav-search"> 
	                	<input class="search-query btn-deposer" placeholder="Faites votre recherche !" type="search" name="search" value="<?php echo $search?>"  data-original-title="Faites votre recherche !"/>
		                <select class="search-query search-category"  name="search_category">
					                	<option value="">Toutes les catégories</option>
					                	<?php echo $search_category?>
					    </select>
					    <select class="search-query"  id="search_region" name="search_region">
					                	<option value="">Toutes les régions</option>
					                	<?php echo $regionList?>
					     </select>
					     <input id="search_code_postal" class="btn-deposer" placeholder="Code postal ou ville" type="search" name="search_cp" list="search_cp"  value="<?php echo $code_postal?>"   data-original-title="Code postal"/>
			                    <datalist id="search_cp">
			                    <?php echo $villeList?>
								</datalist>
						<input type="submit" value="OK" class="btn"/>
					</div>	
                </div>
            </div>
            
		    <div class="alert row <?php echo (isset($filter) and $filter)?'':'hide' ?>" id="filters">
		    	<!--<button type="button" class="close" data-dismiss="alert">&times;</button>  -->
		    
				<div id="filter"><?php if(isset($filter) and $filter) echo $filter?></div>
				<div class="controls span5">
		    	<button type="submit" class="btn">chercher</button>
		    	</div>
		    </div>
	        </form>
	        